<template>
   <div>
     <div v-for="item in users" :key="item.uid" class="userOne flex" @click="toPersonal(item)">
        <img :src="item.headphoto" class="headphoto" >
        <div class="overflow name">{{item.username}}</div>
     </div>
   </div>
</template>
<script>
  export default 
  {
     name :'', 
     props:['users'],
     methods: {
          toPersonal(user){
            this.$public.ToPersonal(user.uid)
        },
     },
  }
</script>
<style scoped lang='less'>

.headphoto{
    width: 60px;
    height: 60px;
}

.userOne{
    margin: 5px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: white;
    padding: 20px;
    box-sizing: border-box;
    width: 150px;
    height: 150px;
}
.name{
    width: 100%;
    text-align: center;
}

</style>